package com.scy.java.object.customer;

public class CustomerDemo {
    public static void main(String[] args) {
        //创建客户实例
        Customer customer = new Customer("MeiMei", "Han");
//        //创建账号对象
//        Account account = new Account(1000, 2000, 0.0123);
//        //关联起来
//        customer.setAccount(account);
        customer.setAccount(new Account(1001,2002,0.056));
        //存钱
        customer.getAccount().deposit(1000);
        //取钱
        customer.getAccount().withDraw(1000);
        customer.getAccount().withDraw(1000);
        customer.getAccount().withDraw(1000);
        customer.getAccount().withDraw(1000);
        //输出客户信息
        System.out.println(customer.toString());
    }
}
